yii.confirm   A
last analyzed

Complexity

Conditions 2
Paths 4

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
c 0
b 0
f 0
cc 2
nc 4
nop 1
rs 10
1
/**
2
 * @link https://github.com/terabytesoft
3
 * @copyright Copyright (c) 2018 TerabyteSoft S.A.
4
 * @license https://github.com/terabytesoft/asset-bootbox/blob/master/LICENSE.md
5
 *
6
 * @author: Wilmer Arámbula <[email protected]>
7
 */
8
9
/***********************************************************************************************************************
10
 * BootBox                                                                                                             *
11
 ***********************************************************************************************************************/
12
(function () {
13
    yii.confirm = function(message, ok, cancel) {
0 ignored issues
show
Bug introduced by
The variable yii seems to be never declared. If this is a global, consider adding a /** global: yii */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
14
        bootbox.confirm(message, function(result) {
0 ignored issues
show
Bug introduced by
The variable bootbox seems to be never declared. If this is a global, consider adding a /** global: bootbox */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
15
            if (result) { !ok || ok(); } else { !cancel || cancel(); }
16
        });
17
    }
18
})();
19